package com.vonchenchen.usbmuxd_android.usbmuxd.localconn.socket;

import com.vonchenchen.usbmuxd_android.usbmuxd.client.ILocalClient;
import com.vonchenchen.usbmuxd_android.usbmuxd.localconn.ILocalConnector;

import static android.R.attr.port;

/**
 * Created by lidechen on 3/28/17.
 */

public abstract class SocketConnector implements ILocalConnector {

    protected String mAddress;
    protected int mPort;

    protected int mSendBufferSize = -1;
    protected int mReceiveBufferSize = -1;

    public SocketConnector(String address, int port){
        mAddress = address;
        mPort = port;
    }

    @Override
    public void setSendBufferSize(int size) {
        mSendBufferSize = size;
    }

    @Override
    public void setReceiveBufferSize(int size) {
        mReceiveBufferSize = size;
    }
}
